import {
	get,
	post,
	put,
	del
} from '@/utils/request.js'
/**
 * 我的入驻申请
 */
export const myApplyPage = (data) => {
	return get('/agentBindApply/myApplyPage', data)
}
/**
 * 入驻申请列表
 */
export const agentBindApplyPage = (data) => {
	return get('/agentBindApply/page', data)
}

/**
 * 我的上级经纪人
 */
export const myParentAgent = (data) => {
	return get('/agent/myParentAgent', data)
}

/***
*审核经纪人入驻申请
**/ 
export const agentBindApplyAudit = (data) => {
	return post('/agentBindApply/audit', data)
}

/**
 * 待审核解绑记录
 */
export const agentUnBindApplyPage = (data) => {
	return get('/agentUnBindApply/page', data)
}

/***
* 审核经纪人解绑申请
**/ 
export const agentUnBindApplyAudit = (data) => {
	return post('/agentUnBindApply/audit', data)
}

/***
* 经纪人申请解绑
**/ 
export const agentUnBindApplyApi = (data) => {
	return post('/agentUnBindApply/apply', data)
}

/**
 * 获取通用二级佣金比例
 */
export const getDefaultAgent2CommissionRate = () => {
	return get('/agent/getDefaultAgent2CommissionRate')
}